package com.svse.designPattern.behaviour.chainofresponsibility.impl;

import com.svse.designPattern.behaviour.chainofresponsibility.service.Leader;

/**
 * @author LiYuhang
 * @version 0.1
 * @application
 * @Date 2020/8/8 10:58
 */
public class DeanOfStudies extends Leader {
    @Override
    public void vacate(int days) {
        if(days <=30){
            System.out.println("小于一个月 教务处批准假期");
        }else{
            System.out.println("时间太长 教务处不予批准");
        }
    }
}
